The syntax analyzer has one recursive procedure for each nonterminal u . 對于每個非終結符號U,語法分析程序都有一個遞歸過程。
The syntax analyzer has one recursive procedure for each nonterminal u 對于每個非終結符號u ,語法分析程序都有一個遞歸過程。
Such a design presents the same problems as a single recursive procedure , but can be harder to detect and debug 此類設計所產生的問題與單個遞歸過程所產生的問題相同,但更難檢測和調試。
If you write a recursive procedure , you should test it very carefully to make sure it always meets some limiting condition 在編寫遞歸過程時,應非常細心地進行測試,以確保它總是能滿足某些限制條件。
You must design a recursive procedure to test for at least one condition that can terminate the recursion , and you must also handle the case where no such condition is satisfied within a reasonable number of recursive calls 您在設計一個遞歸過程時,必須至少測試一個可以終止此遞歸的條件,并且還必須對在合理的遞歸調用次數內未滿足此類條件的情況進行處理。